Bite 128. Work with datetime's strptime and strftime
Login and get codingIn this Bite you get some more practice with
datetime's usefulstrptimeandstftime.Complete the two functions:
years_agoandconvert_eu_to_us_datefollowing the instructions in their docstrings.This is the definition and difference between the two:
strptime: parse (convert) string to datetime object.strftime: create formatted string for given time/date/datetime object according to specified format.Reference: 8.1.8. strftime() and strptime() Behavior. Good luck and keep calm and code in Python!
809 out of 841 users completed this Bite.
Will you be the 810th person to crack this Bite?
Resolution time: ~39 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.05 on a 1-10 difficulty scale.
» You can do it! 😌